package com.ng.desktop.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ng.desktop.model.Categoria;
import com.ng.desktop.persistence.CategoriaPersistence;
import com.ng.framework.persistence.NGSearchCriteria;

@Service("totallyHealthFacade")
public class TotallyHealthFacadeImpl {

	@Autowired
	private CategoriaPersistence categoriaPersistence;

	public Categoria create(Categoria categoria) {

		return categoriaPersistence.create(categoria);

	}

	public List<Categoria> getAll(NGSearchCriteria criteria) {

		return categoriaPersistence.getAll(criteria);
	}

}
